//
//  PxOilNetSession.m
//  OilCard
//
//  Created by Xu Yefeng on 14-5-18.
//  Copyright (c) 2014年 Free. All rights reserved.
//

#import "PxNetSession.h"

PxNetSession *sharedSession;

@implementation PxNetSession

+ (instancetype)sharedSession
{
    if (sharedSession == nil)
    {
        @synchronized(self)
        {
            if (sharedSession == nil)
            {
                sharedSession = [[self alloc] init];
            }
        }
    }
    return sharedSession;
}

+ (void)clean
{
    sharedSession = nil;
}

+ (BOOL)isUserLogin
{
    if ([PxNetSession sharedSession].token == nil) {
        return NO;
    }
    return YES;
}
@end
